CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmn_send_network_change_store(
id                                                 bigint                         COMMENT '主键ID',
waybill_no                                         String                         COMMENT '运单编号',
send_network_id                                    bigint                         COMMENT '寄件网点ID',
send_network_code                                  String                         COMMENT '寄件网点编码',
send_network_name                                  String                         COMMENT '寄件网点名称',
send_financial_center_id                           bigint                         COMMENT '寄件财务中心',
send_financial_center_name                         String                         COMMENT '寄件财务中心名称',
send_financial_center_code                         String                         COMMENT '寄件财务中心编码',
create_time                                        timestamp                      COMMENT '创建时间',
create_by                                          bigint                         COMMENT '创建人ID',
create_by_name                                     String                         COMMENT '创建人名称',
update_time                                        timestamp                      COMMENT '更新时间',
update_by                                          bigint                         COMMENT '最后更新人ID',
update_by_name                                     String                         COMMENT '最后修改人名称',
trace_id                                           String                         COMMENT '链路ID'
)
COMMENT '运单寄件网点变更存储表'
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/spmi_ods.db/external/spmn_send_network_change_store'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);